package cn.terminus.data.customer.contractselldefylatedeliveryinfo.dao;

import cn.terminus.common.customer.bean.contractselldefylatedeliveryinfo.dto.ContractSellDefyLateDeliveryInfoNewDto;
import cn.terminus.common.customer.bean.contractselldefylatedeliveryinfo.dto.ContractSellDefyLateDeliveryInfoEditDto;
import cn.terminus.common.customer.bean.contractselldefylatedeliveryinfo.dto.ContractSellDefyLateDeliveryInfoQueryDto;
import cn.terminus.common.customer.bean.contractselldefylatedeliveryinfo.dto.ContractSellDefyLateDeliveryInfoDeleteDto;
import cn.terminus.common.customer.bean.contractselldefylatedeliveryinfo.dto.ContractSellDefyLateDeliveryInfoGetsDto;
import cn.terminus.common.customer.bean.contractselldefylatedeliveryinfo.dto.ContractSellDefyLateDeliveryInfoResultDto;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;

import java.util.List;

/**
 * 合同售卖交付违约(ContractSellDefyLateDeliveryInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:17:55
 */
public interface ContractSellDefyLateDeliveryInfoDao {

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Integer add(ContractSellDefyLateDeliveryInfoNewDto dto);

    /**
     * 更新
     *
     * @param dto
     * @return
     */
    Integer update(ContractSellDefyLateDeliveryInfoEditDto dto);


    /**
     * gets
     *
     * @param dto
     * @return
     */
    List<ContractSellDefyLateDeliveryInfoResultDto> gets(ContractSellDefyLateDeliveryInfoGetsDto dto);

    /**
     * 删除
     *
     * @param dto
     * @return
     */
    Integer delete(ContractSellDefyLateDeliveryInfoDeleteDto dto);

    /**
     * 查询
     *
     * @param dto
     * @return
     */
    List<ContractSellDefyLateDeliveryInfoResultDto> query(ContractSellDefyLateDeliveryInfoQueryDto dto);

    /**
     * 分页查询
     *
     * @param dto
     * @param page
     * @return
     */
    TerminusPageAble<ContractSellDefyLateDeliveryInfoResultDto> page(ContractSellDefyLateDeliveryInfoQueryDto dto, TerminusPageInfo page);

    Integer deleteWithContractId(Long id);
}
